package com.example.minio.config;

import com.example.minio.entity.MinioProperties;
import io.minio.MinioClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

import javax.xml.ws.BindingType;

@Configurable
public class MinioConfig {
    @Autowired
    MinioProperties minioProperties;
    @Bean
    public MinioClient getMinioClient(){
        return minioProperties.getMinioConfig();
    }
}
